﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WxApi.ApiPay;
using WxApi.Models;

namespace Shop.TestPay
{
    public partial class ReturnPayPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    string Error = "";
                    string transaction_id = "";
                    string out_trade_no = "";
                    string total_fee = "";
                    string refund_fee = "";
                    string resocode = "";
                    var result = wxPayRefundApi.WxPayRefund(transaction_id, out_trade_no, total_fee, refund_fee, resocode, ref Error);
                    if(result.return_code== "SUCCESS")
                    {

                    }

                }
                catch (Exception ex)
                {

                }
            }
        }
    }
}